<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8" />
  <title>向右滑动，右侧渐隐箭头</title>
  <style>
    body {
      margin: 0;
      background: #eee;
    }
    .arrow-container {
      width: 100%;
      height: 40px;
      overflow: hidden;
      background: #2b50b5;
      position: relative;
      /* 右侧渐隐遮罩 */
      -webkit-mask-image: linear-gradient(to right, #000000 70%, rgba(0,0,0,0));
      mask-image: linear-gradient(to right, rgba(0,0,0,1) 70%, rgba(0,0,0,0));
    }
    .arrow-track {
      display: flex;
      width: max-content;
      animation: scroll-right 10s linear infinite;
    }
    @keyframes scroll-right {
      from { transform: translateX(-50%); }
      to { transform: translateX(0); }
    }
    .arrow-group {
      display: flex;
      gap: 20px;
    }
    .arrow {
      width: 100px;
      height: 100px;
      position: relative;
      flex-shrink: 0;
    }
    .arrow::before {
      content: "";
      position: absolute;
      top: 20%;
      right: 0;
      transform: translateY(-50%);
      width: 0;
      height: 0;
      border: 50px solid transparent;
      border-left-color: #f02c57;
    }
    .arrow::after {
      content: "";
      position: absolute;
      top: 20%;
      right: 20px;
      transform: translateY(-50%);
      width: 0;
      height: 0;
      border: 50px solid transparent;
      border-left-color: #2b50b5;
    }
  </style>
</head>
<body>

<div class="arrow-container">
  <div class="arrow-track">
    <!-- 原始箭头组 -->
    <div class="arrow-group">
      <div class="arrow"></div>
      <div class="arrow"></div>
      <div class="arrow"></div>
      <div class="arrow"></div>
      <div class="arrow"></div>
      <div class="arrow"></div>
      <div class="arrow"></div>
      <div class="arrow"></div>
    </div>
    <!-- 复制箭头组 -->
    <div class="arrow-group">
      <div class="arrow"></div>
      <div class="arrow"></div>
      <div class="arrow"></div>
      <div class="arrow"></div>
      <div class="arrow"></div>
      <div class="arrow"></div>
      <div class="arrow"></div>
      <div class="arrow"></div>
    </div>
  </div>
</div>

</body>
</html>
